<?php
return array(
	'attributeLabels' => array(
		'num' => '客房数量'
	),
	'rules'=>array(
		array('room_type','length','max'=>30),
        array('room_type,hotel_id','required'),
        array('num','numerical','max'=>99,'min'=>0),
	),
	
	'relations' => array(
		'hotel' => array(CActiveRecord::BELONGS_TO, 'CompanyHotel', 'hotel_id'),
		'company' => array(CActiveRecord::BELONGS_TO, 'CompanyHotel', 'hotel_id'),
		'goods' => array(CActiveRecord::BELONGS_TO, 'Goods', 'goods_id'),
	),
	
	'_import' => array(
		array('*', 'models.ActiveRecord//*'),
	),
);